package edu.sctu.practice.class02.liqing.assignment02;

/**
 * Created by 123456 on 2015/10/9.
 */
public class TestRational {
    public static void main(String[] args) {
        Rational rational = new Rational (1.2,2.3);
        System.out.println("加法为"+rational.getSum());
        System.out.println("减法为"+rational.getMinus());
        System.out.println("乘法为"+rational.getMultiply());
        System.out.println("除法为"+rational.getDivide());
    }
}
